package me.tuyou.orm.service;

import me.tuyou.orm.dao.UserDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Description
 * @Author tuyou_cd
 * @Date 2020/6/5 13:50
 */
@Service
public class UserService {

    @Resource
    protected UserDao userDao;

    @Transactional
    public void selectAll() {
        System.out.println(userDao.selectAll());
    }
}
